<template>
    <span class="name name_act"  contenteditable="true" v-if="item.value" >{{item.value}}</span>
    <span class="name" contenteditable="true" v-else>{{item.indexName}}</span>
</template>
<script>
export default {
    props: {
        item: {
            type: Object,
            default: ()=>{
                return {
                    type: 'Normal',
                    indexName:"出现咳痰、全身酸痛,",
                    isAnswered:false, 
                    value:'出现咳痰、全身酸痛,',
                }
            },
        },    
    },
}
</script>
<style lang="scss" scoped>
span{
    outline: none;
    padding: 2px;
    color: #999;
    line-height: 20px;
    border-radius: 5px;
    margin-bottom: 1px;
    margin-right: 1px;
}
span:hover{
    background: #eee;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    position: relative;
    z-index: 22;
}
.name_act{
    color: #333;
}
</style>